﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:SharpMap.Wpf"
    xmlns:shmp_layers="clr-namespace:SharpMap.Layers;assembly=SharpMap"
    xmlns:wpf_pres="clr-namespace:SharpMap.Presentation.Wpf;assembly=SharpMap.Presentation.Wpf"
    >
    <Style TargetType="{x:Type local:MapLayer}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:MapLayer}">
                        <ItemsPresenter/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>

        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate >
                    <!--<pres:MapView IsItemsHost="True" x:Name="PART_MapViewPanel" 
                        DataContext="{Binding }"
                        Map="{Binding Map}"/>-->
                    <local:GeoPanel IsItemsHost="True"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>